import org.junit.Test;

public class Demo05 {
    @Test
    public void test1(){


        // jdk在所有的枚举类里面默认提供两个方法不是Enum类继承下来的
/*        Color[] colors = Color.values();

        for (Color color : colors) {
            System.out.println(color);
        }*/

        /*Color red = Color.valueOf("RED");

        red.getColor();*/

        Color green = Color.GREEN;
        Color blue = Color.BLUE;
        Color red = Color.RED;

        System.out.println(blue.compareTo(red));

    }
}
